package com.tedu.service.Impl;

import com.tedu.dao.AddrDao;
import com.tedu.pojo.Addr;
import com.tedu.service.AddrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AddrServiceImpl implements AddrService {
    @Autowired
    private AddrDao addrDao;
    @Override
    public List<Addr> selectById(Integer id) {
        return addrDao.selectById(1);
    }

    @Override
    public List<Addr> selectAddr(Addr addr) {
        return addrDao.selectAddr(addr);
    }

    @Override
    public int insert(Addr addr) {
        return addrDao.insert(addr);
    }

    @Override
    public int update(Addr addr) {
        return addrDao.update(addr);
    }

    @Override
    public int deleteById(Integer id) {
        return addrDao.deleteById(1);
    }
}
